package com.nengchuan.kbms.dfs.entity.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * <p>
 * 供应商售后 DTO
 * </p>
 *
 * @author abe
 * @since 2020-03-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "ManufacturerInfo对象", description = "供应商售后 DTO")
public class ManufacturerInfoDTO {

    @ApiModelProperty(value = "主键", position = 10)
    private Long id;

    @NotNull(message = "供应商id不能为空")
    @ApiModelProperty(value = "供应商id", position = 30)
    private Long manufacturerId;

    // @NotBlank(message = "厂家名称不能为空")
    // @Size(min = 0, max = 40, message = "厂家名称长度不大于40个字符")
    // @ApiModelProperty(value = "厂家名称", position = 20)
    // private String manufacturerName;

    @Size(min = 0, max = 200, message = "售后地址长度不大于200个字符")
    @ApiModelProperty(value = "售后地址", position = 30)
    private String serviceAddress;

    @Size(min = 0, max = 200, message = "营业时间长度不大于200个字符")
    @ApiModelProperty(value = "营业时间", position = 40)
    private String businessHours;

    @Size(min = 0, max = 40, message = "联系人长度不大于40个字符")
    @ApiModelProperty(value = "联系人", position = 50)
    private String contacts;

    @Size(min = 0, max = 40, message = "电话长度不大于40个字符")
    @ApiModelProperty(value = "电话", position = 60)
    private String phone;

    @ApiModelProperty(value = "电子邮箱", position = 70)
    private String email;

    @Size(min = 0, max = 40, message = "省份名称长度不大于40个字符")
    @ApiModelProperty(value = "省份", position = 80)
    private String province;

    @Size(min = 0, max = 40, message = "市(县)名称长度不大于40个字符")
    @ApiModelProperty(value = "市", position = 90)
    private String city;

    @Size(min = 0, max = 255, message = "备注称长度不大于255个字符")
    @ApiModelProperty(value = "备注")
    @JsonIgnore
    private String remark;

}
